
list1 = [['open_brower', 'chrome'], ['load_url', 'http://localhost:8080/jpress/user/login'], ['input', 'name', 'user', 'admin'], ['input', 'name', 'pwd', '         '], ['click', 'class name', 'btn'], ['switch_allert', '密码不能为空'], [], []]
ll=[]
list2 = [x for x in list1 if x != []]
list3 = [x for x in list1 if x]
ll.append(list2)
print(ll)
print(list2)